package cn.wen.springframework.context.event;import cn.wen.springframework.context.ApplicationContext;import cn.wen.springframework.context.ApplicationEvent;/** * @ClassName: ApplicationContextEvent * @Author: 小飞 * @Date: 2023/3/28 22:16 * @Description: 监听事件应用上下文 */public class ApplicationContextEvent extends ApplicationEvent {    public ApplicationContextEvent(Object source) {        super(source);    }    public final ApplicationContext getApplicationContext() {        return (ApplicationContext) getSource();    }}